/**
 * @Author: 罗显
 * @CreateTime: 2025-05-08
 * @Version: 1.0
 */


package com.it.dataservice.user.service.impl;

import com.it.dataservice.user.entity.UserEntity;
import com.it.dataservice.user.mapper.UserMapper;
import com.it.dataservice.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public UserEntity login(String phone, String password) {
        return userMapper.login(phone, password);
    }

    @Override
    public UserEntity findByPhone(String phone) {
        return userMapper.findByPhone(phone);
    }

    @Override
    public void register(UserEntity userEntity) {
    }

    @Override
    public void updateStatus(Long id, int status) {

    }

    @Override
    public UserEntity findUserById(Long id) {
        return userMapper.findUserById(id);
    }

    @Override
    public boolean updateUserById(UserEntity userEntity) {
        return false;
    }

    @Override
    public boolean updatePassword(Long id, String password) {
        return false;
    }
}